import Vue from 'vue'
import Router from 'vue-router'
import index from './views/Index.vue'
import List from './views/List.vue'
import sign from './views/sign.vue'
import personal from './views/personal.vue'
import ticket from './views/ticket.vue'
import mine from './views/mine.vue'
import historical from './views/historical.vue'
import address from './views/address.vue'
import add from './views/add.vue'
import share from './views/share.vue'
import Voucher from './views/Voucher.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
    path: '/',
    name: 'index',
    component: index
    },{
      path: '/sign',
      name: 'Sign',
      component: sign
    },{
      path: '/List',
      name: 'List',
      component: List
    },{
      path: '/personal',
      name: 'personal',
      component: personal
    },{
      path: '/ticket',
      name: 'ticket',
      component: ticket
    },{
      path: '/mine',
      name: 'mine',
      component: mine
    },{
      path: '/scroll',
      name: 'scroll',
      component: scroll
    },{
      path: '/historical',
      name: 'historical',
      component: historical
    },{
      path: '/address',
      name: 'address',
      component: address
    },{
      path: '/add',
      name: 'add',
      component: add
    },{
      path: '/gift',
      name: 'gift',
      component: () => import('@/views/gift.vue')
    }
    ,{
      path: '/share',
      name: 'share',
      component: share
    },{
      path: '/Voucher',
      name: 'Voucher',
      component: Voucher
    }
  ]
})
